<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="../../WEB-INF/c.tld" prefix="c" %>

<div class="main">
	<div class="container">
	 <div class="login">
	 <c:if test="${error != null}">
		<div class="alert alert-error">
			<bean:message key="${error }" />
	    </div>
	</c:if>
	<html:form action="/login-post" method="post" onsubmit="return validateLoginForm(this);" styleClass="form-horizontal">

	    <fieldset>
		    <legend><bean:message key="login.mainTitle" /></legend>
		    <div class="control-group">
		    <label class="control-label" for="username"><bean:message key="admin.login" /> :</label>
			    <div class="controls">
			    	<html:text property="username" styleClass="input-xlarge" />
			    </div>
		    </div>
		    <div class="control-group">
		    <label class="control-label" for="password"><bean:message key="admin.password" /> :</label>
			    <div class="controls">
			    	<html:password property="password" styleClass="input-xlarge" />
			    </div>
		    </div>
		    <div class="center">
				<button class="btn btn-primary" type="submit"><bean:message key="general.valider" /></button>
			</div>
	    </fieldset>
		
		<html:javascript formName="LoginForm" />
	</html:form>
	</div>
</div>
</div>
